<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
         language="java" %>
<%@ include file="/jsp/platform/include/include.jsp" %>
<html>
<head>
    <TITLE><c:out value="${_LOGONUSER_.MANAGETITILE}"/>
    </TITLE>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <%@ include file="/jsp/platform/include/header.jsp" %>
    <script type="text/javascript">
        $(document).ready(function () {
            var _operateType = "<c:out value='${operateType}'/>";
            if (_operateType != null && _operateType != "") {
                $.messager.alert("提示信息", "二维码绑定已提交成功!");
            }
        });
    </script>
</HEAD>
<BODY>
<DIV class="all">
    <%@ include file="/jsp/platform/include/head.jsp" %>
    <%@ include file="/jsp/platform/include/menu.jsp" %>
    <DIV class="mains">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
            <TBODY>
            <TR valign="top">
                <%@ include file="/jsp/platform/include/mainLeft.jsp" %>
                <TD>
                    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
                        <TBODY>
                        <TR>
                            <TD>
                                <TABLE width="180" border="0" cellspacing="0" cellpadding="0">
                                    <TBODY>
                                    <TR>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_l.jpg">
                                        </TD>
                                        <TD align="center"
                                            background="<%=request.getContextPath()%>/images/pages_bg.jpg">
                                            <SPAN class="f_tit1">二维码绑定</SPAN>
                                        </TD>
                                        <TD width="7"><IMG width="7" height="36" alt=""
                                                           src="<%=request.getContextPath()%>/images/pages_r.jpg">
                                        </TD>
                                    </TR>
                                    </TBODY>
                                </TABLE>
                            </TD>
                        </TR>
                        </TBODY>
                        <TR>
                            <TD>
                                <div class="pages_con">
                                    <!--创建页面-->
                                    <TR>
                                        <TD>
                                            <div class="pages_con">
                                                <form method="post"
                                                      action="<%=request.getContextPath()%>/manage/merchantInfo/dealApplyQR?menuType=20&menuId=201050"
                                                      id="merchantInfoForm" name="merchantInfoForm"
                                                      enctype="multipart/form-data">
                                                    <input type="hidden" name="merchantId" value="${model.merchantId}"/>
                                                    <input type="hidden" name="merchantSysAccount"
                                                           value="${model.merchantSysAccount}"/>

                                                    <div class="pages_con_20">
                                                        <TABLE class="table" style="font-size:12px;">
                                                            <THEAD style="color:#333">
                                                            <TBODY>
                                                            <TR>
                                                                <TD><span class="tdbold">申请信息</span></td>
                                                            </tr>
                                                            <TR>
                                                                <TD>
                                                                    <DIV class="transaction_external">
                                                                        <DIV class="clearfix">
                                                                   											<SPAN class="label cz_label "
                                                                                                                  style="width:120px;text-align:right;">注册账户：</SPAN>
                                                                            <c:out value="${model.merchantSysAccount}"/>
                                                                        </DIV>
                                                                        <DIV class="clearfix">
											<SPAN class="label cz_label "
                                                  style="width:120px;text-align:right;">商户简称：</SPAN>
                                                                            <INPUT name="merchantShortName"
                                                                                   value="${model.merchantShortName}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="merchantShortName" type="text">    <span
                                                                                class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix">
											<SPAN class="label cz_label "
                                                  style="width:120px;text-align:right;">商户全称：</SPAN>
                                                                            <INPUT name="merchantName"
                                                                                   value="${model.merchantName}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="merchantName"
                                                                                   type="text">      <span
                                                                                class="reds f_l">*</span>
                                                                        </DIV>

                                                                        <DIV class="clearfix">
											<SPAN class="label cz_label "
                                                  style="width:120px;text-align:right;">商户地址：</SPAN>
                                                                            <INPUT name="merchantAddr"
                                                                                   value="${model.merchantAddr}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="merchantAddr"
                                                                                   type="text">    <span
                                                                                class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <DIV class="clearfix"><SPAN
                                                                                class="label cz_label "
                                                                                style="width:120px;text-align:right;">联系电话：</SPAN>
                                                                            <INPUT name="telephone"
                                                                                   value="${model.telephone}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="telephone" type="text">  <span
                                                                                    class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <DIV class="clearfix"><SPAN
                                                                                class="label cz_label "
                                                                                style="width:120px;text-align:right;">操作密码：</SPAN>
                                                                            <INPUT name="password"
                                                                                   value="${model.password}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="password" type="password">  <span
                                                                                    class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <DIV class="clearfix"><SPAN
                                                                                class="label cz_label "
                                                                                style="width:120px;text-align:right;">二维码：</SPAN>
                                                                            <INPUT name="offlinePayId"
                                                                                   value="${model.offlinePayId}"
                                                                                   class="txtbox_cz txtbox_cz_color input_change"
                                                                                   id="offlinePayId" type="text">  <span
                                                                                    class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <DIV class="clearfix"><SPAN
                                                                                class="label cz_label "
                                                                                style="width:120px;text-align:right;">收单费率：</SPAN>
                                                                            <INPUT name="payRate"
                                                                                   value="0.38"
                                                                                   type="radio" checked> 0.38
                                                                            <!-- <INPUT name="payRate"
                                                                                   value="0.45"
                                                                                   type="radio"> 0.48 -->
                                                                            <INPUT name="payRate"
                                                                                   value="0.50"
                                                                                   type="hidden"> 0.50<span
                                                                                    class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <DIV class="clearfix"><SPAN
                                                                                class="label cz_label "
                                                                                style="width:120px;text-align:right;">商户类型：</SPAN>
												<SPAN class="label dl_w"
                                                      style="padding-left:0px;text-align:center;height:30px;width:230px;">
												<select id="merchantType" name="merchantType">
                                                    <option value="">请选择</option>
                                                    <option value="0">个体户、商家</option>
                                                    <option value="1">个人</option>
                                                </select></SPAN> <span
                                                                                    class="reds f_l">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                        <span style="margin-left: 50px;color: red;">个体户、商家提交营业执照，个人用户提交合影或者信用卡账单电子档</span>
                                                                        <DIV class="clearfix" id="file1Div"
                                                                             name="fileDiv">
																				<SPAN class="label cz_label "
                                                                                      style="width:120px;text-align:right;">照片：</SPAN>
                                                                            <input id="file1" type="file" name="file"
                                                                                   value="请选择文件"
                                                                                   style="height:31px;margin:1px 0 0 0;;width:280px;"/>
                                                                            <span class="reds">*</span>
                                                                        </DIV>
                                                                        <DIV class="clearfix"></DIV>
                                                                    </DIV>
                                                                    <DIV class="note">
                                                                        <SPAN class="label cz_label">&nbsp;</SPAN> <A
                                                                            class="btn confirm"
                                                                            href="javascript:void(0);"
                                                                            onclick="submitForm()"
                                                                            style="margin-left:113px;">确定</A>
                                                                    </DIV>
                                                                </TD>
                                                            </TR>
                                                            </TBODY>
                                                        </TABLE>
                                                    </div>
                                                </form>
                                            </div>
                                        </TD>
                                    </TR>
                                    <!--结束-->
                                </div>
                            </td>
                        </tr>
                    </TABLE>
                </TD>
            </TR>
            </TBODY>
        </TABLE>
    </DIV>
    <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
        <TBODY>
        <TR>
            <TD width="5" bgcolor="#f1fcfe"><IMG width="5" height="5"
                                                 src="<%=request.getContextPath()%>/images/footer_l.jpg">
            </TD>
            <TD bgcolor="#f1fcfe">&nbsp; <br/></TD>
            <TD width="5" bgcolor="#f1fcfe"><IMG width="5" height="5"
                                                 src="<%=request.getContextPath()%>/images/footer_r.jpg">
            </TD>
        </TR>
        </TBODY>
    </TABLE>
    <%@ include file="/jsp/platform/include/foot.jsp" %>
    <script type="text/javascript">
        function submitForm() {
            //检验所有字段  identityNo
            var checkStr = +"need|merchantShortName|商户简称|" + $("#merchantShortName").val() + ";"
                            + "need|merchantType|商户类型|" + $("#merchantType").val() + ";"
                            + "need|merchantName|商户名称|" + $("#merchantName").val() + ";"
                            + "need|merchantAddr|商户地址|" + $("#merchantAddr").val() + ";"
                            + "need|offlinePayId|二维码编号|" + $("#offlinePayId").val() + ";"
                            + "need|telephone|联系方式|" + $("#telephone").val() + ";"
                            + "need|file1|照片|" + $("#file1").val() + ";"
                            + "fileType|file1|照片|" + $("#file1").val() + "|jpg,JPG,png,PNG,gif,GIF;"
                    ;
            //检验所有规则
            if (!checkAll(checkStr)) {
                return false;
            }

            $('#merchantInfoForm').submit();
            ajaxLoading();
        }
    </script>
</DIV>
</BODY>
</HTML>
